const express = require("express");

const router = express.Router();

const booksControl = require("./booksControls");

router.get("/books", booksControl.queryBooks);

router.post("/addbooks", booksControl.addBook);

router.delete("/delbooks/:id", booksControl.deleteBook);

router.get("/book/:id", booksControl.queryBook);

router.put("/updatebook", booksControl.updateBook);

module.exports = router;
